UIAlertView = {
    show: function (obj) {
        var str = '<div class="ui-alert-wrapper" id="alertWrapper"><div class="ui-alert-box">';
        var title = obj.title || '提示';
        str += '<div class="ui-alert-title">'+title+'</div>'
        if(obj.content){
            str += '<div class="ui-alert-content">'+obj.content+'</div>'
        }
        if(obj.type === 'input'){
            str += '<input type="text" name="alertInput" id="alertInput" />'
        }
        str += '<div class="ui-alert-button"><button class="btn-confirm">确定</button><button class="btn-cancel" onclick="UIAlertView.hide()">取消</button></div>'
        str += '</div></div>';
        document.body.innerHTML=document.body.innerHTML+str;
    },
    hide: function () {
        var alertEle = document.getElementById('alertWrapper');
        alertEle.parentNode.removeChild(alertEle);
    }

}